package com.neu.icloud.service;

import java.util.List;

import com.neu.icloud.entity.Order;


public interface OrderService {

	//创建订单
	public int creatOrder(Order order);
	
	//id查找订单
	public Order findOrderById(Integer orderId);
	
	//根据产品id查询订单
	public int findOrdersByProductId(Integer productId);
	
	//查询该厂全部订单
	public List<Order> findAllOrderByFactoryId(Integer factoryId);
	
	//修改订单
	public int updateOrder(Order order);
	
	//删除订单
	public int deleteOrderByOrderId(Integer orderId);
}
